package com.liuyi.netty.im.test.modular.websocket;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.socket.config.annotation.EnableWebSocket;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;

/**
 * @author Mr.Fmy
 * @since 2022/1/21
 */
@Configuration
@EnableWebSocket
public class WebSocketConfig {

    @Bean
    public ServerEndpointExporter serverEndpoint() {
        return new ServerEndpointExporter();
    }


    public enum WsMsgType {
        /**
         * 系统提示
         */
        SYS_HINT,
        /**
         * 压测数据
         */
        PRESSURETEST_DATA;

    }
}
